-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support sending delayed events (Futures) / MSC4157 #90
Conversation
Widget changes require matrix-org/matrix-widget-api#90
Remove "send_future" types in favour of extending "send_event"
@AndrewFerr Thanks for the quick implementation update to the MSC change we discussed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
We are lacking tests.
I think the most important piece to be tested is the handleSendEvent
call from the ClientWidgetApi.
I also added a very optional comment on the code style of the stacked if.
Take this as a proposal only (not even sure if it would be better or if I just would prefer it)
with timeout coming first because all future groups require a timeout.
to increase code reuse
as proposed by MSC4157
Widget changes require matrix-org/matrix-widget-api#90
The latest commit adds tests for sending futures (and non-future events too, which never had tests), so this should be good for now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
Widget changes require matrix-org/matrix-widget-api#90
Signed-off-by: Andrew Ferrazzutti andrewf@element.io